import request from '../utils/request'


export function getArticleListByCategoryId(currPage,pageSize,categoryId) {
  return request({
    url: 'blog/articles/',
    params:{
      currPage:currPage,
      pageSize:pageSize,
      categoryId:categoryId
    },
    method: 'get'
  })


}

export function getArticleInfo(articleId) {
  return request({
    url:'blog/articles/'+articleId,
    method: 'get'
  })
}

/**
 * 获取当前用户点赞或者收藏的文章列表
 * @param articleId
 * @returns {never}
 */
export function getFavouriteArticle(userId) {
  return request({
    url:'blog/articles/favourites/',
    params:{
      userId:userId
    },
    method: 'get'
  })
}

/**
 *
 */
export function getHotBrowseList(num) {
  return request({
    url:'blog/articles/hot/',
    params:{
      num:num
    },
    method: 'get'
  })
}






